<!-- HTML header for doxygen 1.8.6-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<title>OpenCV: cv::RotatedRect Class Reference</title>
<link href="../../opencv.ico" rel="shortcut icon" type="image/x-icon" />
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<script type="text/javascript" src="../../tutorial-utils.js"></script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/searchdata.js"></script>
<script type="text/javascript" src="../../search/search.js"></script>
<script type="text/x-mathjax-config">
  MathJax.Hub.Config({
    extensions: ["tex2jax.js", "TeX/AMSmath.js", "TeX/AMSsymbols.js"],
    jax: ["input/TeX","output/HTML-CSS"],
});
//<![CDATA[
MathJax.Hub.Config(
{
  TeX: {
      Macros: {
          matTT: [ "\\[ \\left|\\begin{array}{ccc} #1 & #2 & #3\\\\ #4 & #5 & #6\\\\ #7 & #8 & #9 \\end{array}\\right| \\]", 9],
          fork: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ \\end{array} \\right.", 4],
          forkthree: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ #5 & \\mbox{#6}\\\\ \\end{array} \\right.", 6],
          forkfour: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ #5 & \\mbox{#6}\\\\ #7 & \\mbox{#8}\\\\ \\end{array} \\right.", 8],
          vecthree: ["\\begin{bmatrix} #1\\\\ #2\\\\ #3 \\end{bmatrix}", 3],
          vecthreethree: ["\\begin{bmatrix} #1 & #2 & #3\\\\ #4 & #5 & #6\\\\ #7 & #8 & #9 \\end{bmatrix}", 9],
          cameramatrix: ["#1 = \\begin{bmatrix} f_x & 0 & c_x\\\\ 0 & f_y & c_y\\\\ 0 & 0 & 1 \\end{bmatrix}", 1],
          distcoeffs: ["(k_1, k_2, p_1, p_2[, k_3[, k_4, k_5, k_6 [, s_1, s_2, s_3, s_4[, \\tau_x, \\tau_y]]]]) \\text{ of 4, 5, 8, 12 or 14 elements}"],
          distcoeffsfisheye: ["(k_1, k_2, k_3, k_4)"],
          hdotsfor: ["\\dots", 1],
          mathbbm: ["\\mathbb{#1}", 1],
          bordermatrix: ["\\matrix{#1}", 1]
      }
  }
}
);
//]]>
</script><script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
<link href="../../stylesheet.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<!--#include virtual="/google-search.html"-->
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="../../opencv-logo-small.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">OpenCV
   &#160;<span id="projectnumber">4.5.2</span>
   </div>
   <div id="projectbrief">Open Source Computer Vision</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</script>
<script type="text/javascript" src="../../menudata.js"></script>
<script type="text/javascript" src="../../menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('../../',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="../../d2/d75/namespacecv.html">cv</a></li><li class="navelem"><a class="el" href="../../db/dd6/classcv_1_1RotatedRect.html">RotatedRect</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a> &#124;
<a href="../../d2/d8c/classcv_1_1RotatedRect-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">cv::RotatedRect Class Reference<div class="ingroups"><a class="el" href="../../d0/de1/group__core.html">Core functionality</a> &raquo; <a class="el" href="../../dc/d84/group__core__basic.html">Basic structures</a></div></div>  </div>
</div><!--header-->
<div class="contents">

<p>The class represents rotated (i.e. not up-right) rectangles on a plane.  
 <a href="../../db/dd6/classcv_1_1RotatedRect.html#details">More...</a></p>

<p><code>#include &lt;opencv2/core/types.hpp&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:ae1be388780b8d5faf450be18cbbf30f1"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/dd6/classcv_1_1RotatedRect.html#ae1be388780b8d5faf450be18cbbf30f1">RotatedRect</a> ()</td></tr>
<tr class="memdesc:ae1be388780b8d5faf450be18cbbf30f1"><td class="mdescLeft">&#160;</td><td class="mdescRight">default constructor  <a href="#ae1be388780b8d5faf450be18cbbf30f1">More...</a><br /></td></tr>
<tr class="separator:ae1be388780b8d5faf450be18cbbf30f1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aba20dfc8444fff72bd820b616f0297ee"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/dd6/classcv_1_1RotatedRect.html#aba20dfc8444fff72bd820b616f0297ee">RotatedRect</a> (const <a class="el" href="../../dc/d84/group__core__basic.html#ga7d080aa40de011e4410bca63385ffe2a">Point2f</a> &amp;<a class="el" href="../../db/dd6/classcv_1_1RotatedRect.html#a60d492fbe1e457e2cdeac5160ed81422">center</a>, const <a class="el" href="../../dc/d84/group__core__basic.html#gab34496d2466b5f69930ab74c70f117d4">Size2f</a> &amp;<a class="el" href="../../db/dd6/classcv_1_1RotatedRect.html#a68ac6414ed3233245175e2c4f3b2bbfb">size</a>, float <a class="el" href="../../db/dd6/classcv_1_1RotatedRect.html#a6bd95a46f9ab83a4f384a4d4845e6332">angle</a>)</td></tr>
<tr class="separator:aba20dfc8444fff72bd820b616f0297ee"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a409e2505d117aa7212d40b6ec805b611"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/dd6/classcv_1_1RotatedRect.html#a409e2505d117aa7212d40b6ec805b611">RotatedRect</a> (const <a class="el" href="../../dc/d84/group__core__basic.html#ga7d080aa40de011e4410bca63385ffe2a">Point2f</a> &amp;point1, const <a class="el" href="../../dc/d84/group__core__basic.html#ga7d080aa40de011e4410bca63385ffe2a">Point2f</a> &amp;point2, const <a class="el" href="../../dc/d84/group__core__basic.html#ga7d080aa40de011e4410bca63385ffe2a">Point2f</a> &amp;point3)</td></tr>
<tr class="separator:a409e2505d117aa7212d40b6ec805b611"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a055a5d35e50bce65e3b1dee318dd3044"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../dc/d84/group__core__basic.html#ga11d95de507098e90bad732b9345402e8">Rect</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/dd6/classcv_1_1RotatedRect.html#a055a5d35e50bce65e3b1dee318dd3044">boundingRect</a> () const</td></tr>
<tr class="memdesc:a055a5d35e50bce65e3b1dee318dd3044"><td class="mdescLeft">&#160;</td><td class="mdescRight">returns the minimal up-right integer rectangle containing the rotated rectangle  <a href="#a055a5d35e50bce65e3b1dee318dd3044">More...</a><br /></td></tr>
<tr class="separator:a055a5d35e50bce65e3b1dee318dd3044"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5e2a16189afb56b77218b2d60e094ebe"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../d2/d44/classcv_1_1Rect__.html">Rect_</a>&lt; float &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/dd6/classcv_1_1RotatedRect.html#a5e2a16189afb56b77218b2d60e094ebe">boundingRect2f</a> () const</td></tr>
<tr class="memdesc:a5e2a16189afb56b77218b2d60e094ebe"><td class="mdescLeft">&#160;</td><td class="mdescRight">returns the minimal (exact) floating point rectangle containing the rotated rectangle, not intended for use with images  <a href="#a5e2a16189afb56b77218b2d60e094ebe">More...</a><br /></td></tr>
<tr class="separator:a5e2a16189afb56b77218b2d60e094ebe"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a69d648b086f26dbce0029facae9bfb2d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/dd6/classcv_1_1RotatedRect.html#a69d648b086f26dbce0029facae9bfb2d">points</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga7d080aa40de011e4410bca63385ffe2a">Point2f</a> pts[]) const</td></tr>
<tr class="separator:a69d648b086f26dbce0029facae9bfb2d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:a6bd95a46f9ab83a4f384a4d4845e6332"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/dd6/classcv_1_1RotatedRect.html#a6bd95a46f9ab83a4f384a4d4845e6332">angle</a></td></tr>
<tr class="memdesc:a6bd95a46f9ab83a4f384a4d4845e6332"><td class="mdescLeft">&#160;</td><td class="mdescRight">returns the rotation angle. When the angle is 0, 90, 180, 270 etc., the rectangle becomes an up-right rectangle.  <a href="#a6bd95a46f9ab83a4f384a4d4845e6332">More...</a><br /></td></tr>
<tr class="separator:a6bd95a46f9ab83a4f384a4d4845e6332"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a60d492fbe1e457e2cdeac5160ed81422"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../dc/d84/group__core__basic.html#ga7d080aa40de011e4410bca63385ffe2a">Point2f</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/dd6/classcv_1_1RotatedRect.html#a60d492fbe1e457e2cdeac5160ed81422">center</a></td></tr>
<tr class="memdesc:a60d492fbe1e457e2cdeac5160ed81422"><td class="mdescLeft">&#160;</td><td class="mdescRight">returns the rectangle mass center  <a href="#a60d492fbe1e457e2cdeac5160ed81422">More...</a><br /></td></tr>
<tr class="separator:a60d492fbe1e457e2cdeac5160ed81422"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a68ac6414ed3233245175e2c4f3b2bbfb"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../dc/d84/group__core__basic.html#gab34496d2466b5f69930ab74c70f117d4">Size2f</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/dd6/classcv_1_1RotatedRect.html#a68ac6414ed3233245175e2c4f3b2bbfb">size</a></td></tr>
<tr class="memdesc:a68ac6414ed3233245175e2c4f3b2bbfb"><td class="mdescLeft">&#160;</td><td class="mdescRight">returns width and height of the rectangle  <a href="#a68ac6414ed3233245175e2c4f3b2bbfb">More...</a><br /></td></tr>
<tr class="separator:a68ac6414ed3233245175e2c4f3b2bbfb"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>The class represents rotated (i.e. not up-right) rectangles on a plane. </p>
<p>Each rectangle is specified by the center point (mass center), length of each side (represented by <a class="el" href="../../dc/d84/group__core__basic.html#gab34496d2466b5f69930ab74c70f117d4">Size2f</a> structure) and the rotation angle in degrees.</p>
<p>The sample below demonstrates how to use <a class="el" href="../../db/dd6/classcv_1_1RotatedRect.html" title="The class represents rotated (i.e. not up-right) rectangles on a plane. ">RotatedRect</a>: </p><div class="fragment"><div class="line">    Mat test_image(200, 200, <a class="code" href="../../d1/d1b/group__core__hal__interface.html#ga88c4cd9de76f678f33928ef1e3f96047">CV_8UC3</a>, <a class="code" href="../../dc/d84/group__core__basic.html#ga599fe92e910c027be274233eccad7beb">Scalar</a>(0));</div><div class="line">    <a class="code" href="../../db/dd6/classcv_1_1RotatedRect.html#ae1be388780b8d5faf450be18cbbf30f1">RotatedRect</a> rRect = <a class="code" href="../../db/dd6/classcv_1_1RotatedRect.html#ae1be388780b8d5faf450be18cbbf30f1">RotatedRect</a>(<a class="code" href="../../dc/d84/group__core__basic.html#ga7d080aa40de011e4410bca63385ffe2a">Point2f</a>(100,100), <a class="code" href="../../dc/d84/group__core__basic.html#gab34496d2466b5f69930ab74c70f117d4">Size2f</a>(100,50), 30);</div><div class="line"></div><div class="line">    Point2f vertices[4];</div><div class="line">    rRect.points(vertices);</div><div class="line">    <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i &lt; 4; i++)</div><div class="line">        <a class="code" href="../../d6/d6e/group__imgproc__draw.html#ga7078a9fae8c7e7d13d24dac2520ae4a2">line</a>(test_image, vertices[i], vertices[(i+1)%4], <a class="code" href="../../dc/d84/group__core__basic.html#ga599fe92e910c027be274233eccad7beb">Scalar</a>(0,255,0), 2);</div><div class="line"></div><div class="line">    <a class="code" href="../../dc/d84/group__core__basic.html#ga11d95de507098e90bad732b9345402e8">Rect</a> brect = rRect.boundingRect();</div><div class="line">    <a class="code" href="../../d6/d6e/group__imgproc__draw.html#ga07d2f74cadcf8e305e810ce8eed13bc9">rectangle</a>(test_image, brect, <a class="code" href="../../dc/d84/group__core__basic.html#ga599fe92e910c027be274233eccad7beb">Scalar</a>(255,0,0), 2);</div><div class="line"></div><div class="line">    <a class="code" href="../../d7/dfc/group__highgui.html#ga453d42fe4cb60e5723281a89973ee563">imshow</a>(<span class="stringliteral">&quot;rectangles&quot;</span>, test_image);</div><div class="line">    <a class="code" href="../../d7/dfc/group__highgui.html#ga5628525ad33f52eab17feebcfba38bd7">waitKey</a>(0);</div></div><!-- fragment --><div class="image">
<img src="../../rotatedrect.png" alt="rotatedrect.png"/>
<div class="caption">
image</div></div>
 <dl class="section see"><dt>See also</dt><dd><a class="el" href="../../dc/d6b/group__video__track.html#gaef2bd39c8356f423124f1fe7c44d54a1" title="Finds an object center, size, and orientation. ">CamShift</a>, <a class="el" href="../../d3/dc0/group__imgproc__shape.html#gaf259efaad93098103d6c27b9e4900ffa" title="Fits an ellipse around a set of 2D points. ">fitEllipse</a>, <a class="el" href="../../d3/dc0/group__imgproc__shape.html#ga3d476a3417130ae5154aea421ca7ead9" title="Finds a rotated rectangle of the minimum area enclosing the input 2D point set. ">minAreaRect</a>, CvBox2D </dd></dl>
<dl><dt><b>Examples: </b></dt><dd><a class="el" href="../../d6/d7f/samples_2cpp_2camshiftdemo_8cpp-example.html#_a53">samples/cpp/camshiftdemo.cpp</a>, <a class="el" href="../../d9/d73/samples_2cpp_2fitellipse_8cpp-example.html#_a11">samples/cpp/fitellipse.cpp</a>, and <a class="el" href="../../df/dee/samples_2cpp_2minarea_8cpp-example.html#_a12">samples/cpp/minarea.cpp</a>.</dd>
</dl></div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="ae1be388780b8d5faf450be18cbbf30f1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae1be388780b8d5faf450be18cbbf30f1">&#9670;&nbsp;</a></span>RotatedRect() <span class="overload">[1/3]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">cv::RotatedRect::RotatedRect </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>default constructor </p>

</div>
</div>
<a id="aba20dfc8444fff72bd820b616f0297ee"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aba20dfc8444fff72bd820b616f0297ee">&#9670;&nbsp;</a></span>RotatedRect() <span class="overload">[2/3]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">cv::RotatedRect::RotatedRect </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../dc/d84/group__core__basic.html#ga7d080aa40de011e4410bca63385ffe2a">Point2f</a> &amp;&#160;</td>
          <td class="paramname"><em>center</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="../../dc/d84/group__core__basic.html#gab34496d2466b5f69930ab74c70f117d4">Size2f</a> &amp;&#160;</td>
          <td class="paramname"><em>size</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>angle</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>full constructor </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">center</td><td>The rectangle mass center. </td></tr>
    <tr><td class="paramname">size</td><td>Width and height of the rectangle. </td></tr>
    <tr><td class="paramname">angle</td><td>The rotation angle in a clockwise direction. When the angle is 0, 90, 180, 270 etc., the rectangle becomes an up-right rectangle. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a409e2505d117aa7212d40b6ec805b611"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a409e2505d117aa7212d40b6ec805b611">&#9670;&nbsp;</a></span>RotatedRect() <span class="overload">[3/3]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">cv::RotatedRect::RotatedRect </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../dc/d84/group__core__basic.html#ga7d080aa40de011e4410bca63385ffe2a">Point2f</a> &amp;&#160;</td>
          <td class="paramname"><em>point1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="../../dc/d84/group__core__basic.html#ga7d080aa40de011e4410bca63385ffe2a">Point2f</a> &amp;&#160;</td>
          <td class="paramname"><em>point2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="../../dc/d84/group__core__basic.html#ga7d080aa40de011e4410bca63385ffe2a">Point2f</a> &amp;&#160;</td>
          <td class="paramname"><em>point3</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Any 3 end points of the <a class="el" href="../../db/dd6/classcv_1_1RotatedRect.html" title="The class represents rotated (i.e. not up-right) rectangles on a plane. ">RotatedRect</a>. They must be given in order (either clockwise or anticlockwise). </p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a055a5d35e50bce65e3b1dee318dd3044"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a055a5d35e50bce65e3b1dee318dd3044">&#9670;&nbsp;</a></span>boundingRect()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../dc/d84/group__core__basic.html#ga11d95de507098e90bad732b9345402e8">Rect</a> cv::RotatedRect::boundingRect </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>returns the minimal up-right integer rectangle containing the rotated rectangle </p>

</div>
</div>
<a id="a5e2a16189afb56b77218b2d60e094ebe"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5e2a16189afb56b77218b2d60e094ebe">&#9670;&nbsp;</a></span>boundingRect2f()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../d2/d44/classcv_1_1Rect__.html">Rect_</a>&lt;float&gt; cv::RotatedRect::boundingRect2f </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>returns the minimal (exact) floating point rectangle containing the rotated rectangle, not intended for use with images </p>

</div>
</div>
<a id="a69d648b086f26dbce0029facae9bfb2d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a69d648b086f26dbce0029facae9bfb2d">&#9670;&nbsp;</a></span>points()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::RotatedRect::points </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga7d080aa40de011e4410bca63385ffe2a">Point2f</a>&#160;</td>
          <td class="paramname"><em>pts</em>[]</td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>returns 4 vertices of the rectangle </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">pts</td><td>The points array for storing rectangle vertices. The order is bottomLeft, topLeft, topRight, bottomRight. </td></tr>
  </table>
  </dd>
</dl>
<dl><dt><b>Examples: </b></dt><dd><a class="el" href="../../d9/d73/samples_2cpp_2fitellipse_8cpp-example.html#a13">samples/cpp/fitellipse.cpp</a>, and <a class="el" href="../../df/dee/samples_2cpp_2minarea_8cpp-example.html#a14">samples/cpp/minarea.cpp</a>.</dd>
</dl>
</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a id="a6bd95a46f9ab83a4f384a4d4845e6332"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6bd95a46f9ab83a4f384a4d4845e6332">&#9670;&nbsp;</a></span>angle</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">float cv::RotatedRect::angle</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>returns the rotation angle. When the angle is 0, 90, 180, 270 etc., the rectangle becomes an up-right rectangle. </p>

</div>
</div>
<a id="a60d492fbe1e457e2cdeac5160ed81422"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a60d492fbe1e457e2cdeac5160ed81422">&#9670;&nbsp;</a></span>center</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../dc/d84/group__core__basic.html#ga7d080aa40de011e4410bca63385ffe2a">Point2f</a> cv::RotatedRect::center</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>returns the rectangle mass center </p>
<dl><dt><b>Examples: </b></dt><dd><a class="el" href="../../d9/d73/samples_2cpp_2fitellipse_8cpp-example.html#a12">samples/cpp/fitellipse.cpp</a>.</dd>
</dl>
</div>
</div>
<a id="a68ac6414ed3233245175e2c4f3b2bbfb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a68ac6414ed3233245175e2c4f3b2bbfb">&#9670;&nbsp;</a></span>size</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../dc/d84/group__core__basic.html#gab34496d2466b5f69930ab74c70f117d4">Size2f</a> cv::RotatedRect::size</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>returns width and height of the rectangle </p>
<dl><dt><b>Examples: </b></dt><dd><a class="el" href="../../d9/d73/samples_2cpp_2fitellipse_8cpp-example.html#a19">samples/cpp/fitellipse.cpp</a>.</dd>
</dl>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>opencv2/core/<a class="el" href="../../db/dfc/modules_2core_2include_2opencv2_2core_2types_8hpp.html">types.hpp</a></li>
</ul>
</div><!-- contents -->
<!-- HTML footer for doxygen 1.8.6-->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Fri Apr 2 2021 11:36:43 for OpenCV by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.13
</small></address>
<script type="text/javascript">
//<![CDATA[
addTutorialsButtons();
//]]>
</script>
</body>
</html>
